
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<% String path = request.getContextPath(); %>
<script type="text/javascript" src="<%=path%>/static/web/js/home.min.js"></script>

<ul class="banner_bg">
    <c:forEach items="${requestScope.carousels}" var="carousel" varStatus="stat">
        <c:if test="${carousel.importance}">
            <c:if test="${stat.first}">
                <li class="banner_bg_${stat.count} current">
            </c:if>
            <c:if test="${!stat.first}">
                <li class="banner_bg_${stat.count}">
            </c:if>
                    <a target="_blank">
                        <img src="<%=path%>/static/web/images/${carousel.img}" width="612" height="160" alt="${carousel.title}"/>
                    </a>
                </li>
        </c:if>
    </c:forEach>
</ul>

<div class="banner_control">
    <em></em>
    <ul class="thumbs">
        <c:forEach items="${requestScope.carousels}" var="carousel" varStatus="stat">
            <c:if test="${carousel.importance}">
                <c:if test="${stat.first}">
                    <li class="banner_bg_${stat.count} current">
                </c:if>
                <c:if test="${!stat.first}">
                    <li class="banner_bg_${stat.count}">
                </c:if>
                        <i></i>
                        <img src="<%=path%>/static/web/images/${carousel.img}" width="113" height="42"/>
                    </li>
            </c:if>
        </c:forEach>
    </ul>
</div>

